<div ms-controller="noticeList">

    <ol class="breadcrumb">
        <li class="active">公告列表</li>
    </ol>

    <div class="body">
        <h1>公告列表</h1>

        <hr>
        <button class="btn btn-primary"
                ms-click="newnotice($event)">
            <i class="glyphicon glyphicon-plus"></i>
            <span>新建公告</span>
        </button>
        <br>
        <br>

        <table class="table table-striped">
            <tr>
                <td class="col-xs-4">标题</td>
                <td class="col-xs-4">班级</td>
                <td class="col-xs-4">-</td>
            </tr>
            <tr ms-repeat="list">
                <td><a ms-attr-href="#!/notice/edit/{{el._id}}">{{el.title}}</a></td>
                <td>{{el.class.split('#').join(',')}}</td>
                <td>
                    <button class="btn btn-danger"
                            ms-click="removenotice($event,el._id)">
                        <i class="glyphicon glyphicon-trash"></i>
                        <span>删除</span>
                    </button>
                </td>
            </tr>
        </table>
    </div>

    <style>
        .table {
            font-size: 14px;
        }

        button.btn {
            font-size: 12px;
        }
    </style>


</div>